import instance from "@/utils/http"

export const getGoodsTypeData = () => {
    return instance.get('goods/goodsType/appGetGoodsTypeList')
}

export const getGoodsTypeDataByIdData = (id) => {
    return instance.get('goods/goodsType/appGetGoodsTypeDataById',{
        params: {
            id
        }
    })
}

export const getGoodsTypePicDataByIdData = (id) => {
    return instance.get('goods/goodsType/appGetGoodsTypePicDataById',{
        params: {
            id
        }
    })
}

export const getSecondGoodsTypeDataByIdData = (id) => {
    return instance.get('goods/goodsType/appGetSecondGoodsTypeDataById',{
        params: {
            id
        }
    })
}

